package com.jsoft.service.wang.impl;

import com.jsoft.dao.wang.TransferDao;
import com.jsoft.dao.wang.impl.TransferDaoImpl;
import com.jsoft.entity.wang.Transfer;
import com.jsoft.service.wang.TransferService;

import java.util.List;

/**
 * @author MG
 * @email 593020160@qq.com
 * @date 2023/2/22
 */
public class TransferServiceImpl implements TransferService {
    TransferDao transferDao = new TransferDaoImpl();

    @Override
    public List showAllTickets(String sql) throws Exception {
            List<Transfer> results =  transferDao.findAllTickets(sql);
            return results;
    }

    @Override
    public List showAllTickets(String sql, Integer start, Integer pageSize) throws Exception {
        List<Transfer> results =  transferDao.findAllTickets(sql,start,pageSize);
        return results;
    }

    @Override
    public Long getRecordsTotal(String sql) throws Exception {
        Long results = transferDao.getTotal(sql);
        return results;
    }


}
